//对外暴露配置路由(常量路由):全部用户都可以访问到的路由
export const constantRoute = [
    {
        //登录
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        name: 'login',
        meta: {
            title: '登录', //菜单标题
            hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
            icon: 'Promotion', //菜单文字左侧的图标,支持element-plus全部图标
        },
    },
    {
        //登录成功以后展示数据的路由
        path: '/',
        component: () => import('@/layout/index.vue'),
        name: 'layout',
        meta: {
            title: '',
            hidden: false,
            icon: '',
        },
        redirect: '/home',
        children: [
            {
                path: '/home',
                component: () => import('@/views/home/index.vue'),
                meta: {
                    title: '首页',
                    hidden: false,
                    icon: 'HomeFilled',
                },
            }
        ],
    },
    {
        path: '/acl',
        component: () => import('@/layout/index.vue'),
        name: 'Acl',
        meta: {
            title: '权限管理',
            icon: 'Lock',
        },
        redirect: '/acl/user',
        children: [
            {
                path: '/acl/user',
                component: () => import('@/views/acl/user/index.vue'),
                name: 'User',
                meta: {
                    title: '用户管理',
                    icon: 'User',
                },
            }
        ],
    },
    {
        path: '/seckill',
        component: () => import('@/layout/index.vue'),
        name: 'Product',
        meta: {
            title: '秒杀管理',
            icon: 'Guide',
        },
        redirect: '/seckill/activity',
        children: [
            {
                path: '/seckill/activity',
                component: () => import('@/views/seckill/activity/index.vue'),
                name: 'Activity',
                meta: {
                    title: '活动管理',
                    icon: 'ShoppingCart',
                },
            },
            {
                path: '/seckill/goods',
                component: () => import('@/views/seckill/goods/index.vue'),
                name: 'Goods',
                meta: {
                    title: '商品管理',
                    icon: 'Goods',
                },
            },
            {
                path: '/seckill/order',
                component: () => import('@/views/seckill/order/index.vue'),
                name: 'Order',
                meta: {
                    title: '订单管理',
                    icon: 'List',
                },
            }
        ],
    },
]

//异步路由
export const asnycRoute = [
]

//任意路由
export const anyRoute = {
    //任意路由
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
        title: '任意路由',
        hidden: true,
        icon: 'DataLine',
    },
}
